package com.neu.wms.controller;

import com.neu.wms.service.DeptService;
import com.neu.wms.util.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：fengSir
 * @date ：Created By 2023-06-26 8:59
 * @description ：TODO
 */
@RestController
@RequestMapping("/depts")
public class    DeptController {
    @Autowired
    private DeptService deptService;
    @GetMapping
    public ResultVo queryAll(){
        return ResultVo.ok().data("list",deptService.selectAll());
    }
}
